﻿using System.Data;
using DAL;

namespace BLL
{
    public class BllMail
    {
        #region[Get-Data]
        public DataTable GetMail(string keywords)
        {
            return DalMail.GetMail(keywords);
        }
        public DataTable GetMailEdit(int id)
        {
            return DalMail.GetMailEdit(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(EtMail obj)
        {
            return DalMail.Insert(obj);
        }
        public static bool Update(EtMail obj)
        {
            return DalMail.Update(obj);
        }
        public static bool Delete(EtMail obj)
        {
            return DalMail.Delete(obj);
        }
        #endregion
    }
}